import http from './http'
import server from 'config/server'

export default {

  /**
   * 申请应用接口调用凭证
   * @param  {Object} params Access Key ID Access Key Secret
   */
  getAccessKey (params) {
    return http.post(
      `${server.host}/v2/accesskey_auth`, JSON.stringify(params)
    )
  }
}
